const permissionRoutes = [
	{
		path: '/deviceManagement',
		name: 'DeviceManagement',
		redirect: '/deviceManagement/deviceManage',
		meta: {
			name: '设备管理',
			icon: 'Setting',
		},
		children: [
			{
				path: '/deviceManagement/deviceManage',
				name: 'DeviceManage',
				component: () => import('@/views/deviceManagement/deviceManage/index.vue'),
				meta: {
					name: '设备列表',
					icon: 'User',
				},
			},
			{
				path: '/deviceManagement/deviceGroupManage',
				name: 'DeviceGroupManage',
				component: () => import('@/views/deviceManagement/groupManage/index.vue'),
				meta: {
					name: '设备分组',
					icon: 'User',
				},
			}
		],
	},
	{
		path: '/anchorManagement',
		name: 'AnchorManagement',
		redirect: '/anchorManagement/anchorManage',
		meta: {
			name: '数据管理',
			icon: 'Setting',
		},
		children: [
			{
				path: '/anchorManagement/anchorManage',
				name: 'anchorManage',
				component: () => import('@/views/anchor/index.vue'),
				meta: {
					name: '主播数据',
					icon: 'User',
				},
			}
		],
	},
	{
		path: '/systemSetting',
		name: 'SystemSetting',
		redirect: '/systemSetting/usersManage',
		meta: {
			name: '系统管理',
			icon: 'Setting',
		},
		children: [
			{
				path: '/systemSetting/usersManage',
				name: 'UsersManage',
				component: () => import('@/views/systemSetting/usersManage.vue'),
				meta: {
					name: '用户管理',
					icon: 'User',
				},
			}
		],
	},
];

export default permissionRoutes;
